package com.finance.system.export;

import com.finance.framework.lang.BeanUtils;
import com.finance.system.bean.pojo.Organization;
import com.finance.util.export.ExportBeanParse;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * Created by ljg on 2017/4/14.
 */
public class OrganizationParse extends ExportBeanParse<Organization,OrganizationImportTemplateBean> {
    private final Logger logger = LoggerFactory.getLogger(this.getClass());

    @Override
    protected OrganizationImportTemplateBean parse(Organization organization) {
        OrganizationImportTemplateBean bean = new OrganizationImportTemplateBean();

        try {
            BeanUtils.copyProperties(bean,organization);
        } catch (Exception e) {
            logger.error("拷贝类失败",e);
        }
        return bean;
    }

}
